/*
 * @Description:
 * @Autor: zhzj
 * @Date: 2020-12-31 14:58:14
 * @LastEditors: zhzj
 * @LastEditTime: 2020-12-31 14:58:14
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取表格数据
export const getAreaData = params => axios.get(`${SERVER.CMSCLOUD_WMS}/serviceass/pdiarea/selectlist`, { params });
// 保存
export const postSave = (params) => axios.post(`${SERVER.CMSCLOUD_WMS}/serviceass/pdiarea/save`, params)
// 批量停用/启用
export const batchUpdate = params => axios.put(`${SERVER.CMSCLOUD_WMS}/serviceass/pdiarea/batchupdate`,  params );
// excel导入
export const saveExcel = params => axios.put(`${SERVER.CMSCLOUD_WMS}/serviceass/pdiarea/saveexcel`,  params );
// 获取表格数据
export const getCheckingAreaData = params => axios.get(`${SERVER.CMSCLOUD_WMS}/serviceass/pdiarea/getareachecking`, { params });